package com.dyh.quickdemo.dasync;

import org.springframework.context.ApplicationEvent;

/*
@Author=Joey Wheeler
@Date=2021/3/11 17:10
*/
public class AsyncEventContext<T> {
    String type;
    T data;

    public AsyncEventContext(String type, T data) {
        this.type = type;
        this.data = data;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
